public class Extends{
    public static void main(String[] args){
        Son s = new Son("son", 100);
        s.show();
    }
}

class Father{
    public String name;
    private int money = 100000;
    
    public Father(){}
    
    public Father(String name, int money){
        this.name = name;
        this.money = money;
    }
    
    private void show(){
        System.out.println("money: " + money);
    }
}

class Son extends Father{
    public String name;
    private int money;
    
    public Son(String name, int money){
        super();
        
        this.name = name;
        this.money = money;
    }
    
    public void show(){
        super.show();
        System.out.println("father money: " + super.money);
        System.out.println("son show()");
    }
}